package com.jack.vipmis.vip.wei.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 微贴回复类
 * 
 * @author JackLiang
 * @version 1.0
 * @date 2014-6-17
 */
@Entity
@Table(name = "wei_reply_tribune")
@JSONType(serialzeFeatures = SerializerFeature.WriteNullStringAsEmpty)
public class Replytribune extends BaseEntity<Long> {

	@JSONField(name = "tid")
	@Column(name = "tid")
	private Long	tribune;				// 被回复帖子ID

	/**
	 * 回复名
	 */
	@Column
	private String	reUserName;
	/**
	 * 回复ID
	 */
	@Column
	private Long	ruserId;
	/**
	 * 回复内容
	 */
	@Column
	private String	reContent;
	/**
	 * 用户图片
	 */
	@Column
	private String	reUserAvatar;
	/**
	 * 回复性别
	 */
	@Column
	private int		reUserGender;
	/**
	 * 回复时间
	 */
	@Column
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Temporal(TemporalType.TIMESTAMP)
	private Date	reTime	= new Date();
	/**
	 * 回复图片
	 */
	@Column
	private String	rePic;

	@Transient
	private String	remark;

	@Column(name = "is_show")
	private Boolean	show	= true;

	// setter getter
	public Long getTribune() {
		return tribune;
	}

	public void setTribune(Long tribune) {
		this.tribune = tribune;
	}

	public String getReUserName() {
		return reUserName;
	}

	public void setReUserName(String reUserName) {
		this.reUserName = reUserName;
	}

	public Long getRuserId() {
		return ruserId;
	}

	public void setRuserId(Long ruserId) {
		this.ruserId = ruserId;
	}

	public String getReContent() {
		return reContent;
	}

	public void setReContent(String reContent) {
		this.reContent = reContent;
	}

	public String getReUserAvatar() {
		return reUserAvatar;
	}

	public void setReUserAvatar(String reUserAvatar) {
		this.reUserAvatar = reUserAvatar;
	}

	public int getReUserGender() {
		return reUserGender;
	}

	public void setReUserGender(int reUserGender) {
		this.reUserGender = reUserGender;
	}

	public Date getReTime() {
		return reTime;
	}

	public void setReTime(Date reTime) {
		this.reTime = reTime;
	}

	public String getRePic() {
		return rePic;
	}

	public void setRePic(String rePic) {
		this.rePic = rePic;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

}
